package com.imiku.repository;

import com.imiku.model.BlogInfo;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface BlogInfoRepository extends JpaRepository<BlogInfo, String> {

    Page<BlogInfo> findByTypeIdAndBlogTitle(Integer type, String title, Pageable pageable);

    BlogInfo findByBlogId(String blogId);

    Page<BlogInfo> findAll(Specification<BlogInfo> spec, Pageable pageable);
}
